package com.wongoing.sys.shiro;

import java.io.Serializable;

import com.wongoing.util.LoginType;

public class ShiroUser implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private Integer userId;
	private String account;
	private String userType;

	public ShiroUser(Integer userId, String account, String user) {
		super();
		this.userId = userId;
		this.account = account;
		this.userType = user;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}
	
	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	/**
	 * 本函数输出将作为默认的<shiro:principal />输出。
	 */
	public String toString() {
		return this.account;
	}
}
